package com.bootdo.app.controller;

import com.bootdo.system.mapper.TbJcLogMapper;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @create 2021-03-04 14-45
 */
@Api("排行榜")
@Controller
@RequestMapping("/app/wxTop")
public class WxTopController {

    @Autowired
    private TbJcLogMapper tbJcLogMapper;


    @PostMapping("/list")
    @ResponseBody
    public List selectWxTop(){
        return tbJcLogMapper.selectProfitTop();
    }

}
